package com.explorati.interview.interview.chapterten;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.Socket;

public class TCPClientA {

	public static void main(String[] args) throws Exception {
		Socket s = new Socket("localhost", 8888);
		InputStream is = s.getInputStream();
		InputStreamReader isr = new InputStreamReader(is);
		BufferedReader br = new BufferedReader(isr);
		String str = br.readLine();
		System.out.println(str);
	}
}
